xen/arm: traps: Second attempt to correctly use the content of HPFAR_EL2
authorJulien Grall <julien.grall@arm.com>
Wed, 22 Jun 2016 13:21:02 +0000 (14:21 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Thu, 14 Jul 2016 11:13:09 +0000 (12:13 +0100)
commit502c739d9bbaabbbe7c6968c7213f0ca8fcceeca
tree8dbad6d926b60744c367d53fee2c0d30ac16105a
parent84aac343cc3a721ca4a81edb425ad5ab7ab6f5b5
xen/arm: traps: Second attempt to correctly use the content of HPFAR_EL2

Commit c051618 "xen/arm: traps: Correctly interpret the content of the
register HPFAR_EL2" attempted to fix the interpretation of HPFAR_EL2.

However, the register contains a 4KB-aligned address. This means that
the reported address is not directly usable to know the faulting IPA.
The offset in the 4KB page can be found by looking at the associated virtual
address (FAR_EL2/HDFAR).

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/traps.c